package com.taobao.tddl.util;

public class CommerSpliter {

    private StringBuilder appendable;
    private boolean       first = true;

    public CommerSpliter(StringBuilder appendable){
        this.appendable = appendable;
    }

    public void split() {
        if (this.first) {
            this.first = false;
        } else {
            this.appendable.append(", ");
        }
    }

    public void reset() {
        this.first = true;
    }
}
